﻿<%@ Page Language="C#" AutoEventWireup="true" Debug="true" CodeFile="registrationList.aspx.cs" Inherits="Manage_registrationList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="Stylesheet" type="text/css" href="css/admin.css" />

    <script type="text/javascript" src="js/jquery-1.7.1.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
            <tr height="28">
                <td background="images/title_bg1.jpg">
                    当前位置:
                    <asp:SiteMapPath ID="SiteMapPath1" runat="server" SiteMapProvider="ManageSiteMapProvider">
                    </asp:SiteMapPath>
                </td>
            </tr>
            <tr>
                <td bgcolor="#b1ceef" height="1">
                </td>
            </tr>
            <tr height="20">
                <td background="images/shadow_bg.jpg">
                </td>
            </tr>
        </table>
        
        <div style="margin-left:10px;margin-right:10px">
            <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                <tr height="1">
                    <td>
                    </td>
                </tr>
                <tr height="22">
                    <td style="padding-left: 20px; font-weight: bold; color: #ffffff" align="left" background="images/title_bg2.jpg">
                        报名信息
                    </td>
                </tr>
                <tr bgcolor="#ecf4fc" height="12">
                    <td>
                    </td>
                </tr>
                <tr height="5">
                    <td>
                    </td>
                </tr>
            </table>
            
            <div>
                <asp:GridView ID="grd_Registration" runat="server" AutoGenerateColumns="False" 
                    onselectedindexchanged="grd_Registration_SelectedIndexChanged" 
                    AllowPaging="True" PageSize="5" CellPadding="3" BackColor="White" 
                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
                    onpageindexchanging="grd_Registration_PageIndexChanging" Width="95%" 
                    onrowcommand="grd_Registration_RowCommand" 
                    ondatabinding="grd_Registration_DataBinding" 
                    onrowdatabound="grd_Registration_RowDataBound">
                    <RowStyle ForeColor="#000066" />
                    <Columns>
                        <asp:BoundField DataField="regId" HeaderText="编号" />
                        <asp:BoundField DataField="regName" HeaderText="姓名" />
                        <asp:BoundField DataField="regSex" HeaderText="性别" />
                        <asp:BoundField DataField="proName" HeaderText="选择专业" />
                        <asp:BoundField DataField="regSchool" HeaderText="毕业院校" />
                        <asp:BoundField DataField="regDegree" HeaderText="学历" />
                        <asp:BoundField DataField="regIDcard" HeaderText="身份证号" />
                        <asp:BoundField DataField="regPhone" HeaderText="联系电话" />
                        <asp:BoundField DataField="regZip" HeaderText="邮编" />
                        <asp:BoundField DataField="regMail" HeaderText="邮箱" />
                        <%--<asp:CommandField SelectText="录取" ShowSelectButton="True" HeaderText="操作" ItemStyle-ForeColor="Red" />--%>
                        <asp:BoundField DataField="isReged" HeaderText="是否录取" />
                        <asp:TemplateField HeaderText="操作" ShowHeader="False">
                            <ItemTemplate>
                                <asp:LinkButton ID="btn_Luqu" runat="server" ForeColor="Red" CausesValidation="False" 
                                    CommandName="Select" Text="录取"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle ForeColor="Red" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <PagerTemplate>
                        <table width="100%" style="background-color:#006599">
                            <tr>
                                <td style="text-align: right; color: White;">
                                    共<asp:Label ID="lbl_Count" runat="server"></asp:Label>条&nbsp; 第<asp:Label ID="lbl_PageIndex"
                                        runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:Label>页/
                                    共<asp:Label ID="lbl_PageCount" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageCount  %>'></asp:Label>页
                                    <asp:LinkButton ID="btn_First" runat="server" CommandArgument="First" CommandName="Page"
                                        Enabled="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>" Text="首页"
                                        Font-Underline="True" BorderStyle="NotSet">
                                    </asp:LinkButton>
                                    <asp:LinkButton ID="btn_Prev" runat="server" CommandArgument="Prev" CommandName="Page"
                                        Enabled="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>" Text="上一页"
                                        Font-Underline="True">
                                    </asp:LinkButton>
                                    <asp:LinkButton ID="btn_Next" runat="server" CommandArgument="Next" CommandName="Page"
                                        Enabled="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>"
                                        Text="下一页" Font-Underline="True"></asp:LinkButton>
                                    <asp:LinkButton ID="btn_Last" runat="server" CommandArgument="Last" CommandName="Page"
                                        Enabled="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>"
                                        Text="尾页" Font-Underline="True"></asp:LinkButton>&nbsp;
                                    <asp:TextBox ID="txt_PageIndex" runat="server" Width="20px"></asp:TextBox>
                                    <asp:LinkButton ID="btn_Go" runat="server" Text="GO" CommandName="Go" Font-Underline="True" />
                                </td>
                            </tr>
                        </table>
                    </PagerTemplate>
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
